package com.lvbaoins.Harmony.system.common;

import org.springframework.beans.factory.InitializingBean;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface Strategy extends InitializingBean {

    /**
     * 单个文件下载
     * @param orderNo
     * @param response
     */
    void exec(String orderNo, HttpServletResponse response);

    /**
     * 批量下载
     * @param idArr
     * @param request
     * @param response
     */
    void downLoadBatch(Integer[] idArr, HttpServletRequest request, HttpServletResponse response) throws Exception;
}
